<?php $this->headTitle('Kết quả tìm kiếm - '.$keyword);?>
<div class="wrap">
    <div class="header">
        <?php echo $this->partial('header'); ?>    
    </div>
    <div class="main">
        <div class="content">
            <div class="content_top">
                <div class="heading">
                    <h3>Kết quả tìm kiếm - <span style="color: #cd1f25"><?php echo "'".$keyword."'";?></span></h3>
                </div>
                <div class="clear"></div>
            </div>
            <div class="section group">
                <?php foreach ($aryProduct as $key => $product) { ?>
                    <div class="grid_1_of_4 images_1_of_4 <?php echo ($key % 4 == 0) ? 'no-margin' : '' ?>">
                        <a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>">
                            <img alt="<?php echo $product['product_name']; ?>"  src="/upload/images/thumb/<?php echo $product['product_image']; ?>">
                        </a>
                        <h2><a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>"><?php echo $product['product_name']; ?></a></h2>
                        <div class="price-details">
                            <?php if ($product['product_price_sale_of']) { ?>
                                <div class="price-number">
                                    <p><span class="rupees"><?php echo number_format($product['product_price_sale_of'], 0, ',', '.') ?>₫</span></p>
                                </div>
                                <div class="add-cart">								
                                    <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                </div>
                            <?php } else { ?>
                                <div class="add-cart">								
                                    <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                </div>
                            <?php } ?>
                            <div class="clear"></div>
                        </div>
                    </div>
                <?php } ?>
            </div>
            <?php
            echo $this->paginationControl($this->aryProduct, 'Sliding', 'product/_product-search-paginator.phtml', array(
                'route' => 'product/search',
                'keyword' => $keyword
            ));
            ?>	
        </div>
    </div>
</div>